/* Ejercicio 4.35
   ejer4_35.c */
#include <stdio.h>

/* function main begins program execution */
int main( void )
{
   int x; /* counter */

   /* loop 10 times */
   for ( x = 1; x <= 10 && x != 5; x++ ) {

      /* if x is 5, terminate loop */
      if ( x != 5 ) {
         printf( "%d ", x ); /* display value of x */
      }
   } /* end for */

   printf( "\nBroke out of loop at x == %d\n", x );
   return 0; /* indicate program ended successfully */
} /* end function main */
